import request from '../utils/request'

export const findGroups = () => {
  return request({
    url: '/web-cam/findGroups',
    method: 'GET'
  })
}
export const insertGroup = (data) => {
  return request({
    url: '/web-cam/insertGroup',
    method: 'POST',
    data
  })
}
export const deleteGroup = (data) => {
  return request({
    url: '/web-cam/deleteGroup',
    method: 'POST',
    data
  })
}
export const updateGroup = (data) => {
  return request({
    url: '/web-cam/updateGroup',
    method: 'POST',
    data
  })
}

export const findCams = () => {
  return request({
    url: '/web-cam/findCams',
    method: 'GET'
  })
}
export const insertCam = (data) => {
  return request({
    url: '/web-cam/insertCam',
    method: 'POST',
    data
  })
}
export const deleteCam = (data) => {
  return request({
    url: '/web-cam/deleteCam',
    method: 'POST',
    data
  })
}
export const updateCam = (data) => {
  return request({
    url: '/web-cam/updateCam',
    method: 'POST',
    data
  })
}

